<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" id="c-id" value="{$row.id}">
  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#info" aria-controls="info" role="tab" data-toggle="tab">基础信息</a></li>
    <li role="presentation"><a href="#order" aria-controls="order" role="tab" data-toggle="tab">订单信息</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="info" style="margin-top:10px;">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-realname" class="form-control" name="row[realname]" type="text" value="{$row.realname|htmlentities}" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Sname')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-sname" class="form-control" name="row[sname]" type="text" value="{$row.sname|htmlentities}" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Pinyin')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-pinyin" class="form-control" name="row[pinyin]" type="text" value="{$row.pinyin|htmlentities}" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[sex]', ['1'=>__('男'), '0'=>__('女')], $row.sex)}
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Person_no')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-person_no" class="form-control" name="row[person_no]" type="text" value="{$row.person_no|htmlentities}" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-birthday" class="form-control datetimepicker" name="row[birthday]" type="text" value="{$row.birthday_text|htmlentities}" data-date-format="YYYY-MM-DD">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-tel" class="form-control" name="row[tel]" type="text" value="{$row.tel|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Check_in_count')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-check_in_count" class="form-control" name="row[check_in_count]" type="number" value="{$row.check_in_count|htmlentities}" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-remarks" class="form-control" name="row[remarks]">{$row.remarks|htmlentities}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
            <div class="col-xs-12 col-sm-8">
              <select  id="c-state" class="form-control" name="row[state]">
                <option value="0" {in name="0" value="$row.state"}selected{/in}>
              正常
                </option>
                <option value="-1" {in name="-1" value="$row.state"}selected{/in}>
              已删除
                </option>
              </select>
            </div>
        </div>
    </div>
    <div role="tabpanel" class="tab-pane" id="order" style="margin-top:10px;">
        <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
               width="100%">
        </table>
    </div>
  </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
